﻿using Library.Common.Model;
using Library.Core.Domain.Repository;
using Synthesize.BaseSet.ServiceInterface.Dtos.Authority.Login;
using Synthesize.BaseSet.ServiceInterface.Dtos.Authority.User;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Synthesize.BaseSet.ServiceInterface.Query.Authority
{
    /// <summary>
    /// 用户查询接口
    /// </summary>
    public interface IUserQueryService
    {

        #region 登录相关操作
        /// <summary>
        /// 获取验证码
        /// </summary>
        /// <param name="uniqueIdentifier"></param>
        /// <returns></returns>
        Task<BaseApiResult<ValidateCodeOutput>> LoadValidateCode(string uniqueIdentifier);

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <returns></returns>
        Task<BaseApiResult<UserLoginInfoOutput>> UserLogin(UserInfoLoginInput input);

        /// <summary>
        /// 刷新Token
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<UserLoginInfoOutput>> RefreshToken(RefreshTokenInput input);

        #endregion


        /// <summary>
        /// 获取用户分页信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<PageData<GetUserListOutput>>> GetUserPageList(GetUserListInput input);

        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<GetUserOutput>> GetUserInfo(GetUserInput input);

        /// <summary>
        /// 根据角色获取对应的用户列表信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<List<GetUserOutput>>> GetUserListByRole(GetUserListByRoleInput input);

        /// <summary>
        /// 根据岗位获取对应的用户列表信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<List<GetUserOutput>>> GetUserListByPost(GetUserListByPostInput input);

        /// <summary>
        /// 根据部门获取对应的用户列表信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<BaseApiResult<List<GetUserOutput>>> GetUserListByDepartment(GetUserListByDepartmentInput input);
    }
}
